
//---------------------------------------------------------------- INCLUDE

//-------------------------------------------------------- Include système
using namespace std;
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <fstream>
#include <math.h>



//------------------------------------------------------ Include personnel
#include "Robot.h"
float test = 0;

//------------------------------------------------------------- Constantes

//----------------------------------------------------------------- PUBLIC

//----------------------------------------------------- Méthodes publiques
Reseau* Robot::GetReseau()
{
  return monCerveau;
}


double* Robot::Deplacer(double infosEntree[])
{
  monCerveau->CalculerCoucheSortie(infosEntree);
  return monCerveau->GetNeuronesSortie();
}
//------------------------------------------------- Surcharge d'opérateurs


//-------------------------------------------- Constructeurs - destructeur
Robot::Robot()
{
  monCerveau = new Reseau();
}

Robot::Robot(char * name)
{
  float fitness;
  ifstream infile;
  infile.open (name, ifstream::in);
  infile.read ( (char*) &fitness, sizeof (fitness ) );
  monCerveau = new Reseau();
  monCerveau->Load(infile); 

}

Robot::~Robot()
{
}

//------------------------------------------------------------------ PRIVE

//----------------------------------------------------- Méthodes protégées
